const common = {
    namespaced:true,
    state:{
        token:'永远的神'
    },
    getters:{
        getToken(_state){
            return _state.token
        }
    },
    actions:{
        setToken(store,newToken){
            store.commit('mutationToken',newToken)
        }
    },
    mutations:{
        mutationToken(_state,newToken){
            // debugger
            _state.token = newToken
        }
    }
}

export default common